import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/css/base.css'
import './assets/iconfont/iconfont.css'
import { Button, Menu, MenuItem, MenuItemGroup, Form, FormItem, Input, Icon, Message, Container, Aside, Submenu, Header, Dropdown, DropdownMenu, DropdownItem, Main, Table, TableColumn, Breadcrumb, BreadcrumbItem, Card, Row, Col, Switch, Tooltip, Pagination, Dialog, Popconfirm } from 'element-ui'

Vue.use(Button)
  .use(Menu)
  .use(MenuItem)
  .use(MenuItemGroup)
  .use(Form)
  .use(FormItem)
  .use(Input)
  .use(Icon)
  .use(Container)
  .use(Aside)
  .use(Submenu)
  .use(Header)
  .use(Dropdown)
  .use(DropdownMenu)
  .use(DropdownItem)
  .use(Main)
  .use(Table)
  .use(TableColumn)
  .use(Breadcrumb)
  .use(BreadcrumbItem)
  .use(Card)
  .use(Row)
  .use(Col)
  .use(Switch)
  .use(Tooltip)
  .use(Pagination)
  .use(Dialog)
  .use(Popconfirm)

Vue.component(Message.name, Message)
// Message需要做vue的全局配置
Vue.prototype.$message = Message

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
